package ernie.pages;

/**
 * @author Filip Lindqvist <buggfille@gmail.com>
 * @created 6:51:39 PM - Nov 11, 2011
 */
public class HtmlPage implements Page {
    private final String content;

    public HtmlPage(String content) {
        this.content = content;
    }

    @Override
    public String getContent() {
        StringBuilder sb = new StringBuilder();
        sb.append("<html>");

        sb.append("<head>");
        sb.append("</head>");

        sb.append("<body>");
        sb.append(content);
        sb.append("</body>");

        sb.append("</html>");

        return sb.toString();
    }

    @Override
    public String file() {
        return "";
    }
}
